package com.centaline.androidsalesblog.api.sale;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.SmsCodePostRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 验证码登陆验证api
 * Created by Lihq on 2016/1/12.
 */
public class SmsCodePostApi extends SaleApi<SmsCodePostRo>{

    private String mobile;
    private String code;

    public void setMobile(String mobile){
        this.mobile = mobile;
    }
    public void setCode(String code){this.code = code;}

    public SmsCodePostApi(Class<?> tag, Class<SmsCodePostRo> aClass, IResponseListener<SmsCodePostRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    @Override
    public int getMethod() {
        return Request.Method.POST;
    }

    @Override
    public void setParams() {
        putParams("Phone",mobile);
        putParams("Code",code);
    }


    @Override
    public String getPath() {
        return "SmsCode";
    }
}
